import { deletedFormUrl, get, postJSON, putJSON } from '@/utils/request'
// 添加-收货地址
export const address = (address) => {
  return postJSON('/member/address', address)
}

// 获取-收货地址
export const getMemberAddress = () => {
  return get('/member/address')
}

//修改-收货地址
export const updateAddress = (id,address) => {
  return putJSON(`/member/address/${id}`, address)
}
//删除-收货地址
export const delAddress = (id) => {
  return deletedFormUrl(`/member/address/${id}`)
}
